#include "gofgame/dungeonkeeper/game/Item.h"
#include "gofgame/dungeonkeeper/game/GameManager.h"

using namespace gofgame::dungeonkeeper::game;

void Item::useForHero(Hero *hero){

}
void Item::useForUnit(Unit *unit) {

}
void Item::useItem(){

}

void Item::geted(){
	GameManager::sharedGameManager()->items->removeObject(this);
	GameManager::sharedGameManager()->getGameLayer()->removeChild(this,true);
}

void Item::draw(){
	CCSize size = this->texture->boundingBox().size;
	ccDrawRect(this->texture->boundingBox().origin,ccpAdd(this->texture->boundingBox().origin,ccp(size.width,size.height)));
}